import os

print("model1 running.....")
os.system('python lc_model/test.py')

print("model2 running.....")
print("这个时间有点长，稍等.....")
os.system('python xiaoxiao_model/temp3.py')

print("model3 running.....")
os.system('python tao1_model/temp2.py')

print("model4 running.....")
print("这个时间也有点长，稍等.....")
os.system('python tao2_model/temp.py')

# 首先 import 必要的模块
import pandas as pd
import numpy as np

taomodel1_path='tao1_sub.csv'
xiaoxiaomodel_path='xiao_sub.csv'
taomodel2_path='tao2_sub.csv'
lcmodel_path='lc_sub.csv'

#taomodel1-->result
result=pd.read_csv(taomodel1_path,index_col=0,)
result.columns=['result']

#xiaoxiaomodel1-->1
result1=pd.read_csv(xiaoxiaomodel_path,index_col=0,)
result1.columns=['result1']

#taomodel2-->2
result2=pd.read_csv(taomodel2_path,index_col=0,)
result2.columns=['result2']

#lcmodel-->3
result3=pd.read_csv(lcmodel_path,index_col=0,)
result3.columns=['result3']


index1=result1[result1.result1==0].index
index2=result2[result2.result2==0].index
index3=result3[result3.result3==0].index

result.loc[index1,'result']=0
result.loc[index2,'result']=0
result.loc[index3,'result']=0

result.to_csv('finalSubmission.csv',index_label='idx')